Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Nov 23, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #5501 ac42c45 Thanks @gregfromstl! - Added new deployment utility functions to help manage infrastructure contracts and initialization:

    • getInitializeTransaction: Prepare initialization transaction for contract deployment
    • getOrDeployInfraForPublishedContract: Get or deploy required infrastructure for published contracts
    import {
      getInitializeTransaction,
      getOrDeployInfraForPublishedContract,
    } from "thirdweb";
    
    // Get initialization transaction
    const initTx = await getInitializeTransaction({
      client,
      chain,
      account,
      implementationContract,
      deployMetadata,
      initializeParams: {
        name: "My Contract",
        symbol: "CNTRCT",
      },
    });
    
    // Get or deploy infrastructure
    const infra = await getOrDeployInfraForPublishedContract({
      chain,
      client,
      account,
      contractId: "MyContract",
      constructorParams: params,
    });

PR-Codex overview

This PR focuses on updating the thirdweb package version from 5.70.1 to 5.71.0 and introduces new utility functions for managing infrastructure contracts.

Detailed summary

  • Updated version in package.json from 5.70.1 to 5.71.0.
  • Added new deployment utility functions in CHANGELOG.md:
    • getInitializeTransaction: Prepares initialization transaction for contract deployment.
    • getOrDeployInfraForPublishedContract: Manages required infrastructure for published contracts.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 4:02am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 4:02am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 4:02am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2024 4:02am

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 23, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.97 KB (+0.06% 🔺) 900 ms (+0.06% 🔺) 511 ms (+48.05% 🔺) 1.5 s
thirdweb (cjs) 105.01 KB (0%) 2.2 s (0%) 727 ms (+8.47% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 139 ms (+405.4% 🔺) 251 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 43 ms (+902.81% 🔺) 53 ms
thirdweb/react (minimal + tree-shaking) 18.38 KB (0%) 368 ms (0%) 66 ms (+67.65% 🔺) 433 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants